package com.snopy.item;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author snopy
 * @version 1.0.0
 * @classname ItemApplication
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/09 15:10
 */
@SpringBootApplication
//扫描mybatis通用mapper所在的包
@MapperScan(basePackages = {"com.snopy.item.mapper"})
//扫描所有包以及相关组件包
@ComponentScan(basePackages = {"com.snopy","org.n3r.idworker"})
@EnableDiscoveryClient
//@EnableFeignClients(basePackages = {"com.snopy.item.service"})
public class ItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(ItemApplication.class,args);
    }
}
